/**
 * 
 */
package ramakrishnanmoreHealthModel.Campus.LearningEnvironment;

/**
 * @author aloke
 *
 */
public class ClassRoom extends LearningEnvironment
	{

		//ATTRIBUTES ======================================
		
		//Time when the Student was present at the ClassRoom.
		private int timeInstancex_=0;
		
		//TODO: Add mechanism to check the time at Location 1<time Location 2
		//CONSTRUCTORS ======================================
		//PRE-CONDITION:
			//1. Latitude, longitude should not be negative
			//2. Time cannot be negative and decimal
		public ClassRoom(int latitude, int longitude, String classRoomAddress, int time)
			{

				setLocationLatitude(latitude);
				setLocationLongitude(longitude);
				this.setLearningEnvAddress(classRoomAddress);
				setLocationTime(time);
			
				if (latitude<=-1)
					{System.out.println("Latitude cannot be less than 0.");}
				else if (longitude<=-1)
					{System.out.println("Longitude cannot be less than 0.");}
				else if (time<=-1)
					{System.out.println("Time cannot be less than 0");}
				
			}

		//INTENT: gets the time when the Student was present at the ClassRoom.
		//POST-CONDITION: 
			//1. Send the time when the Student was present in the ClassRoom grid.
		public int getTimeInstance ()
			{return timeInstancex_;}
		
	}
